package com.example.mymall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author <a href="https://srpihot.site">Srpihot</a>
 * @since 2021-10-06
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("goods")
public class GoodsEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品名
     */
    @TableField("name")
    private String name;

    /**
     * 商品信息
     */
    @TableField("context")
    private String context;

    /**
     * 商品价格
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 商品厂家
     */
    @TableField("factory")
    private String factory;

    /**
     * 销量
     */
    @TableField("sale")
    private String sale;

    /**
     * 点赞数
     */
    @TableField("likes")
    private Integer likes;

    /**
     * 商品图片
     */
    @TableField("picture")
    private String picture;


}
